package com.atguigu.jxc.controller;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.DamageList;
import com.atguigu.jxc.entity.Goods;
import com.atguigu.jxc.service.DamageListGoodsSerivce;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @description 商品报损Controller
 */
@Controller
@RequestMapping("/goods")
public class DamageListGoodsController {
    @Autowired
    private DamageListGoodsSerivce damageListGoodsSerivce;

    /**
     * 保存报损单
     * @param damageList
     * @param damageListGoodsStr
     * @return
     */
//    @PostMapping("/save")
//    @ResponseBody
//    public ServiceVO save(DamageList damageList, String damageListGoodsStr) {
//        return damageListGoodsSerivce.save(damageList,damageListGoodsStr);
//    }
}
